home *** CD-ROM | disk | FTP | other *** search
/ Mission to McDonaldLand / Mission To McDonaldLand.iso / code.cst / 00042_Script_FLYOPEN < prev    next >
Text File  |  1998-10-29  |  4KB  |  135 lines

  1. on enterFrame
  2.   global heading
  3.   global move
  4.   global updown
  5.   global silly
  6.   global silly2
  7.   global nomore
  8.   global CStop
  9.   global castrestore
  10.   global restoration
  11.   
  12.   if CStop = 1 then 
  13.     if the mouseH < the locH of sprite 30 then set the member of sprite 30 = "Left"
  14.     if the mouseH > the locH of sprite 30 then set the member of sprite 30 = "Right"
  15.     abort
  16.   end if
  17.   
  18.   if silly = 1 then
  19.         if the locH of sprite 30 < 100 or the locH of sprite 30 > 550 then
  20.           set silly = 0
  21.           puppetSound "off"
  22.           set the member of sprite 30 = "Right"
  23.         end if
  24.     
  25.     if the mouseH < the locH of sprite 30 then 
  26.       set the locH of sprite 30 = the locH of sprite 30 - 20
  27.       set the member of sprite 30 = "RocketL"
  28.     end if
  29.     if the mouseH > the locH of sprite 30 then 
  30.       set the locH of sprite 30 = the locH of sprite 30 + 20
  31.       set the member of sprite 30 = "RocketR"
  32.     end if
  33.     if the mouseV < the locV of sprite 30 then set the locV of sprite 30 = the locV of sprite 30 - 20
  34.     if the mouseV > the locV of sprite 30 and the locV of sprite 30 < 300 then set the locV of sprite 30 = the locV of sprite 30 + 20
  35.     if soundBusy(1) then set horrible = 1
  36.     else puppetSound "thruster"
  37.     abort
  38.   end if
  39.   
  40.   
  41.   if the locV of sprite 30 < 270 then
  42.     
  43.     set the locV of sprite 30 = the locV of sprite 30 + 20
  44.     if the locV of sprite 30 > 269 then puppetSound "thump"
  45.     abort
  46.   end if
  47.   
  48.   if the mouseV < 270 or the mouseH > the locH of sprite 30 - 20 and the mouseH < the locH of sprite 30 + 20 then
  49.     if heading = 1 then set the member of sprite 30 = "Left"
  50.     if heading = 2 then set the member of sprite 30 = "Right"
  51.     set move = 0
  52.   end if
  53.   
  54.   if the mouseH > the locH of sprite 30 + 19 and the mouseV > 270 then 
  55.     set the member of sprite 30 = "Walk Right"
  56.     set heading = 2
  57.     set move = 1
  58.     set the locH of sprite 30 = the locH of sprite 30 + 15
  59.   end if
  60.   
  61.   if the mouseH < the locH of sprite 30 - 19 and the mouseV > 270 then 
  62.     set the member of sprite 30 = "Walk Left"
  63.     set heading = 1
  64.     set move = 1
  65.     set the locH of sprite 30 = the locH of sprite 30 - 15
  66.   end if
  67.   
  68.   if the mouseV > the locV of sprite 30 and the mouseV < the locV of sprite 30 + 50 then 
  69.     if move = 0 and heading = 1 then set the member of sprite 30 = "Left"
  70.     if move = 0 and heading = 2 then set the member of sprite 30 = "Right"
  71.     set updown = 0
  72.   end if
  73.   
  74.   if the mouseV < the locV of sprite 30 then 
  75.     if the locV of sprite 30 > 300 then
  76.       if move = 0 and heading = 1 then set the member of sprite 30 = "Walk Left"
  77.       if move = 0 and heading = 2 then set the member of sprite 30 = "Walk Right"
  78.       set the locV of sprite 30 = the locV of sprite 30 - 5
  79.       set updown = 1
  80.     end if
  81.   end if
  82.   
  83.   if the mouseV > the locV of sprite 30 + 50 then 
  84.     if the locV of sprite 30 < 350 then
  85.       if move = 0 and heading = 1 then set the member of sprite 30 = "Walk Left"
  86.       if move = 0 and heading = 2 then set the member of sprite 30 = "Walk Right"
  87.       set the locV of sprite 30 = the locV of sprite 30 + 5
  88.       set updown = 1
  89.     end if
  90.   end if
  91.   
  92.   if the locH of sprite 30 > 600 then 
  93.     set the locH of sprite 30 = 50
  94.     set the member of sprite 30 = "blank"
  95.     set nomore = 0
  96.     set restoration = 0
  97.     set castrestore = 0
  98.     puppetTransition 11, 1, 30, TRUE
  99.     go next
  100.     set the member of sprite 30 = "Walk Right"
  101.   end if
  102.   
  103.   if the locH of sprite 30 < 40 then 
  104.     set the locH of sprite 30 = 590
  105.     set the member of sprite 30 = "blank"
  106.     set nomore = 0
  107.     set restoration = 0
  108.     set castrestore = 0
  109.     puppetTransition 12, 1, 30, TRUE
  110.     go previous
  111.     set the member of sprite 30 = "Walk Left"
  112.   end if
  113.   
  114. end
  115.  
  116.  
  117. on rightMouseDown
  118.   global silly
  119.   global heading
  120.   global CStop
  121.   if CStop = 1 then abort
  122.   set silly = 1
  123. end
  124.  
  125. on rightMouseUp
  126.   global silly
  127.   global heading
  128.   set silly = 0
  129.   set the member of sprite 30 = "Fall"
  130. end
  131.  
  132. on exitFrame
  133.   go the frame
  134. end
  135.